import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class Main {
    public static void main(String[] args) throws IOException {
        //创建客户端的Socket对象(Socket)
        Socket st=new Socket("192.168.8.103",10086);
        //获取输出流，写数据
        OutputStream os= st.getOutputStream();
        os.write("Hello World".getBytes());
        st.close();
    }
}